import { ActionDesc, PagesKey } from '@/global/constant'
import { IContentConfig, TableItemType } from '@/components/page-content/type'

const bannedContent: IContentConfig = {
  pageKey: PagesKey.Banned,
  tableConfig: {
    // bordered: true
    size: 'small',
    scroll: {
      x: 1380
    },
    rowKey: 'bannedId'
  },
  isShowRowSelection: false,
  isShowMoreAction: true,
  moreActions: [{ key: ActionDesc.Delete, label: '删除' }],
  isShowAddBtn: false,
  isShowBatchBtn: false,
  tableItems: [
    {
      type: TableItemType.Column,
      title: '用户名',
      dataIndex: 'userName'
    },
    {
      type: TableItemType.Column,
      title: '开始时间',
      dataIndex: 'startTime'
    },
    {
      type: TableItemType.Column,
      title: '持续时间',
      dataIndex: 'delayTime',
      customkey: 'delayTime',
      width: 120
    },
    {
      type: TableItemType.Column,
      title: '封禁原因',
      dataIndex: 'bannedCause',
      width: 300
    },
    {
      type: TableItemType.Column,
      title: '解封时间',
      dataIndex: 'manualUnlockTime',
      width: 160
    },
    {
      type: TableItemType.Column,
      title: '创建时间',
      dataIndex: 'createTime',
      width: 160
    },
    {
      type: TableItemType.Column,
      title: '创建人',
      dataIndex: 'createBy'
    },
    {
      type: TableItemType.Column,
      title: '更新时间',
      dataIndex: 'updateTime',
      width: 160
    },
    {
      type: TableItemType.Column,
      title: '更新人',
      dataIndex: 'updateBy'
    }
  ],
  batchActions: undefined
}

export default bannedContent
